import request from '@/utils/request'

// 财务概括
export function apiFinanceDataCenter() {
    return request.get({ url: '/finance.center/center' })
}
// 充值记录
export function apiRechargeRecord(params: any) {
    return request.get({ url: '/finance.recharge/lists', params })
}

// 余额明细
export function apiAccountLogLists(params: any) {
    return request.get({ url: '/finance.account_log/lists', params })
}

// 变动类型列表
export function apiAccountLogOtherLists() {
    return request.get({ url: '/finance.account_log/changeTypeLists' })
}

// 退款列表
export function apiRefundList(params: any) {
    return request.get({ url: '/order.order_refund/lists', params })
}

// 退款日志
export function apiRefundLogList(params: any) {
    return request.get({ url: '/order.order_refund/logLists', params })
}

// 重新退款
export function apiReRefund(params: any) {
    return request.post({ url: '/order.order_refund/reRefund', params })
}
//提现记录
export function withdrawList(params?: any) {
    return request.get({ url: '/finance.withdraw/lists', params })
}
// 提现详情
export function withdrawDetial(params: any) {
    return request.get({ url: '/finance.withdraw/detail', params })
}
//审核通过
export function withdrawPass(params: any) {
    return request.post({ url: '/finance.withdraw/pass', params })
}
//审核拒绝
export function withdrawRefuse(params: any) {
    return request.post({ url: '/finance.withdraw/refuse', params })
}
//转账成功
export function transferSuccess(params: any) {
    return request.post({ url: '/finance.withdraw/transferSuccess', params })
}
//转账失败
export function transferFail(params: any) {
    return request.post({ url: '/finance.withdraw/transferFail', params })
}
//
export function changeTypeLists(params: any) {
    return request.get({ url: '/finance.account_log/changeTypeLists', params })
}
//查询结果
export function serach(params: any) {
    return request.get({ url: '/finance.withdraw/search', params })
}

//用户资金流水
export function getBalanceList(params: any) {
    return request.post({ url: '/admin.auth.user/balanceList', params })
}

//用户资金流水类型
export function getRechargeType(params: any) {
    return request.post({ url: '/admin.auth.user/rechargeType', params })
}


//支付宝支付列表
export function ZfbRechargeLog(params: any) {
    return request.post({ url: '/admin.auth.payment/ZfbRechargeLog', params })
}

//生成充值记录
export function ZfbRecharge(params: any) {
    return request.post({ url: '/admin.auth.payment/recharge', params })
}


//获取红包发放记录分页列表
export function getUserRedLogList(params: any) {
    return request.post({ url: '/admin.data_user.red_log/getUserRedLogList', params })
}

//获取团长佣金
export function getCommissionList(params: any) {
    return request.post({ url: '/admin.community.community/getCommissionList', params })
}

